package com.ztjava.ask.validator;

import com.jfinal.core.Controller;
import com.ztjava.core.Constant;
import com.ztjava.core.base.BaseValidator;

public class AddReplyValidator extends BaseValidator{

	@Override
	protected void validate(Controller c) {
		setShortCircuit(true);
		validateRequired("answer_id", Constant.MESSAGE, "没有回答ID");
		validateString("content",3,300,Constant.MESSAGE, "回复内容为3-300个字符！");
	}

}
